package com.gome.ocean.dao.model.websql;

/**
 * 表数据
 * @author haqiaolong 2016年9月18日 上午10:59:53
 * @since 5.0.0
 */
public class TableVO {

    private String id;
    
    private String realText;
    
    private String text;
    
    private String treeType;
    
    private String tableName;
    
    private String realName;
    
    private boolean leaf;
    
    private boolean expanded;
    
    private String type;
    
    private String iconCls;
    
    public String getId() {
        return id;
    }

    
    public void setId(String id) {
        this.id = id;
    }

    
    public String getRealText() {
        return realText;
    }

    
    public void setRealText(String realText) {
        this.realText = realText;
    }

    
    public String getText() {
        return text;
    }

    
    public void setText(String text) {
        this.text = text;
    }

    
    public String getTreeType() {
        return treeType;
    }

    
    public void setTreeType(String treeType) {
        this.treeType = treeType;
    }

    
    public String getTableName() {
        return tableName;
    }

    
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    
    public String getRealName() {
        return realName;
    }

    
    public void setRealName(String realName) {
        this.realName = realName;
    }

    
    public boolean isLeaf() {
        return leaf;
    }

    
    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    
    public boolean isExpanded() {
        return expanded;
    }

    
    public void setExpanded(boolean expanded) {
        this.expanded = expanded;
    }

    
    public String getType() {
        return type;
    }

    
    public void setType(String type) {
        this.type = type;
    }

    
    public String getIconCls() {
        return iconCls;
    }

    
    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (expanded ? 1231 : 1237);
        result = prime * result + ((iconCls == null) ? 0 : iconCls.hashCode());
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + (leaf ? 1231 : 1237);
        result = prime * result + ((realName == null) ? 0 : realName.hashCode());
        result = prime * result + ((realText == null) ? 0 : realText.hashCode());
        result = prime * result + ((tableName == null) ? 0 : tableName.hashCode());
        result = prime * result + ((text == null) ? 0 : text.hashCode());
        result = prime * result + ((treeType == null) ? 0 : treeType.hashCode());
        result = prime * result + ((type == null) ? 0 : type.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        TableVO other = (TableVO) obj;
        if (expanded != other.expanded) return false;
        if (iconCls == null) {
            if (other.iconCls != null) return false;
        } else if (!iconCls.equals(other.iconCls)) return false;
        if (id == null) {
            if (other.id != null) return false;
        } else if (!id.equals(other.id)) return false;
        if (leaf != other.leaf) return false;
        if (realName == null) {
            if (other.realName != null) return false;
        } else if (!realName.equals(other.realName)) return false;
        if (realText == null) {
            if (other.realText != null) return false;
        } else if (!realText.equals(other.realText)) return false;
        if (tableName == null) {
            if (other.tableName != null) return false;
        } else if (!tableName.equals(other.tableName)) return false;
        if (text == null) {
            if (other.text != null) return false;
        } else if (!text.equals(other.text)) return false;
        if (treeType == null) {
            if (other.treeType != null) return false;
        } else if (!treeType.equals(other.treeType)) return false;
        if (type == null) {
            if (other.type != null) return false;
        } else if (!type.equals(other.type)) return false;
        return true;
    }
}
